#ifndef LOGINWINDOW_H
#define LOGINWINDOW_H

#include <QMainWindow>
#include <QCloseEvent>
#include"agreement.h"

class ThreadPool;


class erollWindow;

QT_BEGIN_NAMESPACE
namespace Ui { class loginWindow; }
QT_END_NAMESPACE

class loginWindow : public QMainWindow
{
    Q_OBJECT

    // 在 loginWindow.h 中添加声明
protected:
    void closeEvent(QCloseEvent *event) override;

public:
    loginWindow(QWidget *parent = nullptr, ThreadPool* pool = nullptr);
    ~loginWindow();

private slots:
    //注册
    void on_eroll_clicked();
    //登录
    void on_pushButton_2_clicked();
    void plotDialogLogin(CloudDrive::MessageReturn);

    std::string getUserName();

private:
    Ui::loginWindow *ui;
    erollWindow * eWindow =nullptr;
    ThreadPool *thread;
};
#endif // LOGINWINDOW_H
